

export class FunctionModel {
    id:number;
    parentId:number;
    name:string;
    desc?:string;
    route:string|null;
    subs:FunctionModel[];

    constructor(id:number,parentId:number,name:string,desc?:string,route:string|null = null) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.desc = desc;
        this.route = route;
        this.subs = [];
    }
}